home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Main.bin / ArrayOption.java < prev    next >
Text File  |  1998-09-08  |  783b  |  44 lines

  1. package com.symantec.itools.frameworks.application.commandline;
  2.  
  3.  
  4. /**
  5.  * ArrayOption is an abstract base class for all command line
  6.  * arguments that are treated as a group.
  7.  * @author Symantec Internet Tools Division
  8.  * @version 1.0
  9.  * @since VCafe 3.0
  10.  */
  11.  
  12. public abstract class ArrayOption 
  13.     extends Option
  14. {
  15.  
  16.     /**
  17.      * @since VCafe 3.0
  18.      */
  19.     protected int count;
  20.     
  21.     public ArrayOption()
  22.     {
  23.     }
  24.  
  25.     public ArrayOption(String[] flags)
  26.     {
  27.         super(flags);        
  28.     }
  29.  
  30.     public ArrayOption(String[] flags, int count)
  31.     {
  32.         super(flags);
  33.         
  34.         this.count = count;
  35.     }
  36.  
  37.     /**
  38.      * @since VCafe 3.0
  39.      */
  40.     protected int getConsumedCount()
  41.     {
  42.         return count;
  43.     }
  44. }